Conversation
a03f19d to
8923341
Compare
Codecov Report
@@ Coverage Diff @@
## master #1555 +/- ##
==========================================
- Coverage 20.46% 20.14% -0.33%
==========================================
Files 241 244 +3
Lines 5243 5327 +84
Branches 649 660 +11
==========================================
Hits 1073 1073
- Misses 3678 3744 +66
- Partials 492 510 +18
Continue to review full report at Codecov.
|
|
This looks good to me. I personally dislike having to "go backwards" but I understand the need. |
|
I just realized I hand't audited other components. Verifying |
|
I should pull this into my |
shilman
left a comment
There was a problem hiding this comment.
LGTM! Tested (but not on old RN)
|
Testing RN 0.27 right now. Will report back shortly |
- StyleSheet.absoluteFillObject polyfill - Polyfill for min/max width/height style rules through a component
|
Ran into two additional backward incompatibilities. For ease of use moving forward, I added a
|
Made additional changes
|
38ef3f6 moves the polyfill implementations into |
d5af172 to
38ef3f6
Compare
|
👍 How far back do we want to support? I understand we want to make sure that we support older versions of React Native but there has to be a limit to how far back we go. |
It's all about finding the proper balance. Storybook itself doesn't require much UI, so with minimal effort we're able to keep folks on earlier versions supported. If there's any drawback, I think it'll be on the contributor and reviewer side to keep those requirements communicated and enforced. We currently support I don't think this is the proper thread to make a formal decision, but it is something to consider moving forward with the compatibility support in, and observe how things go in future reviews. |

Issue: Builds were broken for React Native versions
<0.43. (#1553)What I did
Swapped out
SectionListforListView. This will be deprecated in the future (I don't believe anytime soon/immediate), so ideally we may want to export a List component that interfaces with whichever underlyingListView/SectionListimplementation is supported. For now, this simply unbreaks<0.43builds.There are two additional regressions:
StyleSheet.absoluteFillObjectand the use ofmaxWidthin a style. For ease of use moving forward, I added apolyfills/directory to address these head on.StyleSheet.absoluteFillObjectThis is only supported in recent versions. It's simply a preset style for a full screen absolutely positioned element.
MinMaxViewPolyfillThe min/max width/height features of styles are not available on earlier versions of React Native. This adds a Higher Order Component that can declaratively (through props) apply these bounding rules to any child component.
How to test
Run the
react-native-vanillaproject and verify all continues to work.Proof
Closes #1553